

import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/rms-api/rms/store/listStore',
    method: 'get',
    params: query
  })
}

// 获取全部店铺名
export function getStore(query) {
  return request({
    url: '/rms-api/rms/store/getStore',
    method: 'get',
    params: query
  })
}

// 详情
export function storeDetails(id) {
  return request({
    url: '/rms-api/rms/store/storeDetails',
    method: 'get',
    params: id
  })
}

export function examine(obj) {
  return request({
    url: '/rms-api/rms/store/examine',
    method: 'post',
    data: obj
  })
}

export function storeLoke(obj) {
  return request({
    url: '/rms-api/rms/store/lock',
    method: 'post',
    data: obj
  })
}

export function storeUnlocking(obj) {
  return request({
    url: '/rms-api/rms/store/unlocking',
    method: 'get',
    params: obj
  })
}

// 查询平台
export function platformAll() {
  return request({
    url: '/rms-api/rms/platform/all',
    method: 'get'
  })
}

// 设置平台
export function platformStoreList(params) {
  return request({
    url: '/rms-api/rms/platform/store/list',
    method: 'get',
    params: params
  })
}

// 排序值
export function platformStoreSort(params) {
  return request({
    url: '/rms-api/rms/platform/store/sort',
    method: 'get',
    params: params
  })
}

export function platformStoreIsDefault(params) {
  return request({
    url: '/rms-api/rms/platform/store/isDefault',
    method: 'post',
    data: params
  })
}

export function platformStoreIsDisplay(params) {
  return request({
    url: '/rms-api/rms/platform/store/isDisplay',
    method: 'post',
    data: params
  })
}

//根据平台查询店铺
export function getStoreList(data) {
  return request({
    url: '/rms-api/rms/store/getStoreList',
    method: 'get',
    params: data
  })
}

// 二次审核
export function secondAuditList() {
  return request({
    url: '/rms-api/rms/store/secondAuditList',
    method: 'get',
  })
}

export function secondAudit(data) {
  return request({
    url: '/rms-api/rms/store/secondAudit',
    method: 'post',
    data: data
  })
}

//重置密码
export function resetPwd(data) {
  return request({
    url: '/rms-api/rms/login/resetPwd',
    method: 'get',
    params: data
  })
}

export function setUpRemind(data) {
  return request({
    url: '/rms-api/msg/remind/setUpRemind',
    method: 'post',
    data: data
  })
}
